package ${packageName}

import nbcp.myoql.db.*
import nbcp.db.sql.*
import nbcp.db.mysql.*
import java.time.*

/**
* ${entity.getComment()}
* @author ${author}
*/
@DbEntityGroup("${entity.group}")
@Cn("${entity.getComment()}")
@DbUks(${entity.getUks()?join(",")})
@DbName("${entity.getName()}")
<#if entity.getAutoInc()>
@SqlAutoIncrementKey
<#elseif entity.getAutoId()>
@AutoIdColumn
<#elseif entity.getAutoNumber()>
@AutoNumberColumn
</#if>
open class ${entity.getClassName()}(): ${baseType} {
<#list entity.getDefineColumns() as field>
    /**
    * ${field.getComment()}
    */
    @Cn("${field.getComment()}")
    @DbName("${field.getName()}")
    var ${field.getFieldName()}: ${field.getKotlinType()} = ${field.getKotlinDefaultValue()}
</#list>
}